package com.greenwiki;

import com.greenwiki.camera.GeneralCamera;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class Main extends Activity {
	private static final String TAG = Main.class.getSimpleName();
	
	private TextView mButtonTest;
	private Button mCameraButton;
	private Handler mRequestHandler = new Handler() {

		/* (non-Javadoc)
		 * @see android.os.Handler#dispatchMessage(android.os.Message)
		 */
		@Override
		public void dispatchMessage(Message msg) {
			// TODO Auto-generated method stub
			super.dispatchMessage(msg);
		}

		/* (non-Javadoc)
		 * @see android.os.Handler#handleMessage(android.os.Message)
		 */
		@Override
		public void handleMessage(Message msg) {
			// TODO Auto-generated method stub
			super.handleMessage(msg);
		}
		
	};
	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        mButtonTest = (TextView) findViewById(R.id.buttonTest);
        
        mCameraButton = (Button) findViewById(R.id.cameraButton);
        mCameraButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				//mButtonTest.setText("Button is working");
				startActivityForResult(new Intent(Main.this, GeneralCamera.class), 0);
			}
        
        });
        
    }
    
    
}